package com.example.mybatisplusstudy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mybatisplusstudy.mapper.UserMapper;
import com.example.mybatisplusstudy.pojo.User;
import com.example.mybatisplusstudy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author code威
 * @version 1.0
 * @description: TODO
 * @date 2022/9/3 18:44
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<User> queryAllByName(String name){
        return baseMapper.queryAllByName(name);
    }

}
